package com.neuedu.part07;

public class ChineseStudent extends Student{
	private int speech;
	private int zp;
	

	public ChineseStudent(int xueHao, String name,String sex, int age,double qz, double qm,int yanJiang,int zp) {
		super(xueHao, name,sex,age,qz, qm);
		this.speech = yanJiang;
		this.zp = zp;
		
	}
	
	

	public int getSpeech() {
		return speech;
	}



	public void setSpeech(int speech) {
		this.speech = speech;
	}



	public int getZp() {
		return zp;
	}



	public void setZp(int zp) {
		this.zp = zp;
	}



	@Override
	public double allResults() {
		return getQm()*0.15+getQz()*0.15+this.speech*0.35+this.zp*0.35;
	}

}
